package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车辆位置表对象 sys_car_location
 * 
 * @author ruoyi
 * @date 2022-05-11
 */
public class SysCarLocation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long locId;

    /** 车辆id */
    @Excel(name = "车辆id")
    private Long carId;

    /** 定位时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "定位时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    /** 维度 */
    @Excel(name = "维度")
    private Long latitude;

    /** 经度 */
    @Excel(name = "经度")
    private Long longitude;

    public void setLocId(Long locId) 
    {
        this.locId = locId;
    }

    public Long getLocId() 
    {
        return locId;
    }
    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setCreateAt(Date createAt) 
    {
        this.createAt = createAt;
    }

    public Date getCreateAt() 
    {
        return createAt;
    }
    public void setLatitude(Long latitude) 
    {
        this.latitude = latitude;
    }

    public Long getLatitude() 
    {
        return latitude;
    }
    public void setLongitude(Long longitude) 
    {
        this.longitude = longitude;
    }

    public Long getLongitude() 
    {
        return longitude;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("locId", getLocId())
            .append("carId", getCarId())
            .append("createAt", getCreateAt())
            .append("latitude", getLatitude())
            .append("longitude", getLongitude())
            .toString();
    }
}
